package com.lzy.wzy.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class WorkingHoursVo {

    private int id;

    @NotBlank
    private String workOrderNumber;

    @NotBlank
    private String productCode;
    @NotBlank
    private String productNumber;
    @NotNull
    private int productionQuantity;
    @NotNull
    private int actualOutput; //实际产出
    @NotNull
    private float workingHours;
    @NotNull
    private float overTime;
    @NotNull
    private float totalWorkingHours;
    @NotBlank
    private String remarks;

    private String name; //填写人


    @NotNull
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private LocalDate recordDate;
}
